package com.charlie.sessions;

import com.charlie.beans.ShipmentOrder;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Вова
 */
@Local
public interface ShipmentOrderFacadeLocal {

    void create(ShipmentOrder shipmentOrder);

    void edit(ShipmentOrder shipmentOrder);

    void remove(ShipmentOrder shipmentOrder);

    ShipmentOrder find(Object id);

    List<ShipmentOrder> findAll();

    List<ShipmentOrder> findRange(int[] range);

    int count();
    int countByID(Integer id);

    ShipmentOrder createFromCart(CartLocal cart);
    
    List<ShipmentOrder> findByStatus(Integer statusID, Integer from, Integer to);
}
